#ifndef __CONTACTS_H_
#define __CONTACTS_H_

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "Txl.h"
#define ElementType void* //万能动态数组
struct Contacts;
typedef struct Contacts Conts;


void UI();
Conts* InitConts();
void InsertConts(Conts *a,ElementType element);
void printConts(Conts *a,void (*print)(ElementType));
ElementType FindByElement(Conts *a,ElementType value,bool (*compare)(ElementType,ElementType));
ElementType RemoveByElement(Conts *a,ElementType value,bool (*compare)(ElementType,ElementType));
void ClearConts(Conts *a,void (*clear)(ElementType));


#endif